live updates from firebase database using c